import { v4 as uuidv4 } from 'uuid';


export const getUserTempId =function(){
    //首先获取userTempId
    let userTempId = localStorage.getItem('USERTEMPID_KEY')

    //如果不存在则创建一个userTempId
    if(!userTempId){
        userTempId = uuidv4()
        localStorage.setItem('USERTEMPID_KEY',userTempId)
    }

    return userTempId
}